home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
DATACH.CST
/
00205_Script_popUpMenucharts
< prev
next >
Wrap
Text File
|
1999-03-07
|
2KB
|
67 lines
property thePopLocc, popSpritec, popNamec, mySpritec, faraway, fieldObjc
global currentChartName, popbgSpritec
on new me
set mySpritec = the spriteNum of me
set popSpritec = mySpritec + 1
set popbgSpritec = mySpritec - 3
set right = the right of sprite (mySpritec - 2)
set top = the top of sprite (mySpritec -2)
set thePopLocc = point(right, top)
set popNamec = "chart_field"
puppetSprite popSpritec, true
set faraway = point(-1000, -1000)
set the loc of sprite popSpritec = faraway
return me
end
on register me, theObj
set fieldObjc = theObj
end
global paramchartredraw
on mouseDown me
set the member of sprite popSpritec = member popNamec
set the loc of sprite popSpritec = thePopLocc
set the member of sprite popbgSpritec = member popNamec
set the loc of sprite popbgSpritec = thePopLocc
-- put "popped - " & thepoplocc
updateStage
repeat while the stillDown
checkIfInsidec fieldObjc
end repeat
set name = getPlaneNamec(fieldObjc)
if name = "" then
nothing
else
-- put "got -"& name
set the loc of sprite popSpritec = faraway
set the loc of sprite popbgSpritec = faraway
set currentchartname = name
go to "chartblank"
updatestage
go to "chartback"
updatestage
set paramchartredraw = 0
set the text of member "disPlane" = "No Competitor"
setupchart
-- disSpecs name
end if
set the loc of sprite popSpritec = faraway
set the loc of sprite popbgSpritec = faraway
updateStage
end
on mouseUp me
nothing
end